package xyz.csmcool.imuser.feignclient;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import xyz.csmcool.imutil.webVo.ResultVo;

import java.util.Map;

/**
 * @author 什锦
 * @Package xyz.csmcool.imuser.feignclient
 * @since 2022/9/5 14:47
 */
@FeignClient(name="imroom",fallback = RoomFileDegradeFeignClient.class)
@Component
public interface RoomClient {

    /**
     * 查询用户状态
     * @param uid
     * @param fid
     * @return
     */
    @GetMapping("/userFriend/getUserFriendStatus")
    public ResultVo<Map<String,Integer>> getUserStatus(@RequestParam("uid") Integer uid,
                                                       @RequestParam("fid") Integer fid);
}
